type int = number;
//class SystemErrorCode

export class SystemErrorCode {
  public static getErrorByCode(code: int): string {
    return SystemErrorCode._map[code];
  }

  public static isInError(code: int): boolean {
    return code in SystemErrorCode._map;
  }

  public static get map() {
    return SystemErrorCode._map;
  }

  public static /* const */ ExceptionCodeUnkown: int = 10000;

  public static /* const */ ExceptionOutOffMemery: int = 10001;

  public static /* const */ ExceptionCodeBase: int = 10002;

  public static /* const */ ExceptionCodeStd: int = 10003;

  public static /* const */ ExceptionCodeDateTime: int = 10004;

  public static /* const */ ExceptionCodeFunction: int = 10005;

  public static /* const */ ExceptionCodeNullHandle: int = 10006;

  public static /* const */ ExceptionCodeDB: int = 10007;

  public static /* const */ ExceptionCodeSerialize: int = 10008;

  public static /* const */ ExceptionCodeLang: int = 10009;

  public static /* const */ ExceptionCodeXml: int = 10010;

  private static /* var */ _map: Record<int, string> = {};
}
